package com.bestv.bsr.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * 湖北移动推荐服务配置
 *
 * @author taojiacheng
 */
@ConfigurationProperties(prefix = "recommend.hb")
@Configuration
@Data
public class HBRecommendProperties {

    /**
     * baseUrl
     */
    private String baseurl;

    /**
     * 场景转换map
     */
    private Map<String, String> sceneConvertMap;

    /**
     * itemType 转换
     */
    private Map<String, String> itemTypeMap;


    /**
     * 湖北移动第三方推荐 Redis 缓存失效时间（分钟）
     */
    private int expiration;


    /**
     * 最大推荐节目数
     */
    private int maxRecommendSize;


    /**
     * sentinel 熔断配置
     */
    @NestedConfigurationProperty
    private SentinelProperties sentinel;

}
